// 生产管理模块API
import {
  getAction,
  deleteAction,
  putAction,
  putparamsAction,
  postAction,
  postParamsAction,
  httpAction,
} from '@/api/manage'

// 总数，完成数，百分比
export const queryWorkShopCompleteInfo = (params) =>
  getAction('/jksaas-produce/produce/workShopPlanCompleteRate/queryWorkShopCompleteInfo', params)

// 生产工单
export const queryOverdueReportPage = (params) =>
  getAction('/jksaas-produce/produce/workOrderOverdue/queryOverdueReportPage', params)
  export const productionUnqualifiedDistribution = (params) =>
  getAction('/jksaas-produce/produce/quality/productionUnqualifiedDistribution/getPageList', params)
// 物料类型
export const getDictModel = (params) => getAction('/jksaas-produce/produce/sys/dict/getDictModel', params)

// 柱状图
export const queryHistogram = (params) => getAction('/jksaas-produce/produce/workOrderOverdue/queryHistogram', params)

// 饼图
export const getPieChart = (params) => getAction('/jksaas-produce/produce/workOrderOverdue/getPieChart', params)

// 生产逾期原因新增 
export const produceOrderoverdueReasonAdd = (params) => postAction('/jksaas-produce/produce/produceOrderoverdueReason/add', params)
// 逾期原因现有数据查询
export const getProduceOrderoverdueReason = (params) => getAction('/jksaas-produce/produce/produceOrderoverdueReason/getList', params)
// 逾期原因删除
export const delProduceOrderoverdueReason = (params) => deleteAction('/jksaas-produce/produce/produceOrderoverdueReason/delete', params)
// 逾期原因更新
export const updateReason = (params) => postAction('/jksaas-produce/produce/workOrderOverdue/updateReason', params)
export const getDefectsData = (params) => getAction('/jksaas-produce/produce/quality/productionUnqualifiedDistribution/getDefectsData', params)
export const register = (params) => getAction('/jksaas-produce/produce/quality/productionUnqualifiedDistribution/getDefectsPieData', params)
export const getDefectsPieData = (params) => getAction('/jksaas-produce/produce/quality/materialUnqualifiedDistribution/getDefectsPieData', params)
export const getUnqualifiedStatisticsExtField = (params) => getAction('/jksaas-produce/produce/quality/productionUnqualifiedDistribution/getUnqualifiedStatisticsExtField', params)
export const materialUnqualifiedDistribution = (params) => getAction('/jksaas-produce/produce/quality/materialUnqualifiedDistribution/getDefectsData', params)
export const getPageList = (params) => getAction('/jksaas-produce/produce//quality/materialUnqualifiedDistribution/getPageList', params)
